package beast;

import java.util.List;

import beast.evolution.alignment.Alignment2;
import beast.evolution.alignment.Sequence;
import beast.evolution.datatype.Nucleotide;

public class AccessSequence extends BEASTTestCase {

	public void testAccessSequences() throws Exception {
		Alignment2 data = getAlignment();
		// System.out.println("The num of taxa is:" + data.getNrTaxa());
		List<Sequence> all_sequences = data.getSequences();
		Nucleotide nucleo = new Nucleotide();
		for (Sequence sequence : all_sequences) {
			List<Integer> tmp_seq = sequence.getSequence(nucleo);
			String real_seq = nucleo.state2string(tmp_seq);
			System.out.println(real_seq);
		}
	}

}